Page({

  /**
   * 页面的初始数据
   */
  data: {
    orderId:""
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    if(!options){
      return
    }
    const orderId = options.orderId
    this.setData({
      orderId
    })
  },

  handleViewDetail(){
    const orderId = this.data.orderId
    wx.redirectTo({
      url: `/pages/order-handle/order-handle?id=${orderId}`,
    })
  },

  handleBack(){
    wx.switchTab({
      url: '/pages/home-page/home-page?tabIndex=toBeProcessed',
    })
  }
})